<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">  
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" href="/css/style.css" type="text/css" media="screen" />
<?php echo Lin_Grid::includeSource(); ?>
<?php echo Lin_Loader::validation(); ?>
<script language="javascript">
$(function(){
	$("#add-user").button();
	$("#add-table").dialog({autoOpen: false})
	$( "#add-user" ).click(function() {
			$( "#add-table" ).dialog( "open" );
		});

	jQuery("#form1").validationEngine();	

	$(".user-del").live('click', function(){
		id = $(this).attr('href');
		if (confirm('Confirm to del ?'))
		{
			location.replace('/user/index/del/' + id)
			return false;
		}

		return false;
		
	})
});
</script>
</head>

<body>
<div class="container">
  <div class="title"><h3>User List</h3></div>
  <div class="button-div"><a href="#" id="add-user">Add User</a></div>
  <?php echo $this->userList(); ?>
</div>
<div id="add-table" title="Add Account">
<form id="form1" name="form1" action="" method="post" >
<input type="hidden" id="action" name="action" value="add" />
<table width="100%" border="0" cellpadding="2" cellspacing="0" >
  <tr>
    <td width="30%" height="25" align="right">Accout:</td>
    <td><input name="user_account" type="text" class="validate[required] text-input" id="user_account" size="30" /></td>
  </tr>
  <tr>
    <td height="25" align="right">Password:</td>
    <td><input name="user_pwd" type="password" class="validate[required] text-input" id="user_pwd" size="30" /></td>
  </tr>
  <tr>
    <td height="25" align="right">Confirm Password:</td>
    <td><input name="user_pwd1" type="password" class="validate[required,equals[user_pwd]] text-input" id="user_pwd1" size="30" /></td>
  </tr>
  <tr>
    <td height="25" align="right">E-mail:</td>
    <td><input name="user_email" type="text" class="validate[required] text-input" id="user_email" size="30" /></td>
  </tr>
  <tr>
    <td height="25" align="right">&nbsp;</td>
    <td><input type="submit" name="Submit" id="Submit" value="Submit" /></td>
  </tr>
</table>
</form>
</div>
</body>
</html>